package dao;

import model.Account;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * ClassName:AccountMapper
 * Package:dao
 *
 * @date:2021/11/2 3:17 下午
 * @author: Tiangle
 */
public interface AccountMapper {
    @Select("select * from Account where username=#{name}")
    Account getAccountByName(String name);
    @Update("update account set balance=#{balance} where id = #{id} ")
    int updateAccount(Account account);
}
